package edu.cuit.canary.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import edu.cuit.canary.enums.Status;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Order {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @TableField("u_id")
    private Integer userId;
    @TableField("p_id")
    private Integer productId;
    private int amount;
    private Status status = Status.UNPAID;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
